package homework.service;

import homework.entity.Goods;
import homework.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

public interface UserService {

    List<User> queryAll();

    User register( String userName,String zhangHao,String miMa); //注册新用户

    String login( String zhangHao,String miMa);  //登录

    String buy(String goodsName, Integer number,String userName); //用户购买的商品的名字和数量，删去了thisUser

    void add_balance( BigDecimal balance,User thisUser);     //用户对余额充值

    User isAdministrator(String zhangHao,String miMa);     //判断用户是否为管理员

}
